package com.ruoyi.web.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysDept;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充值流水信息对象 api_cash_flow
 * 
 * @author youwei
 * @date 2023-11-28
 */
@Data
public class ApiCashFlow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 系统订单号 */
    @Excel(name = "系统订单号")
    private String orderId;

    /** 三方回调订单号 */
    @Excel(name = "三方回调订单号")
    private String transactionId;

    /** 支付金额分单位 */
    @Excel(name = "支付金额分单位")
    private Integer amount;

    /** 操作类型:1:充值;2:会员 */
    @Excel(name = "操作类型:1:充值;2:会员")
    private Integer opType;

    /** 支付方式 */
    @Excel(name = "支付方式:1:充值;2:会员")
    private Integer tradeType;

    /** 0:待支付:1:支付成功:2:支付超时 */
    @Excel(name = "0:待支付:1:支付成功:2:支付超时")
    private Integer status;

    /** 订单描述 */
    @Excel(name = "订单描述")
    private String descTxt;

    /** 关联商品id */
    @Excel(name = "关联商品id")
    private Long bankId;

    /** 支付成功时间 */
    @Excel(name = "支付成功时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @Excels({
            @Excel(name = "昵称", targetAttr = "nickName", type = Excel.Type.EXPORT),
    })
    private User userInfo;
}
